from abc import ABC

from services.base.base_service import BaseService


class BizService(BaseService, ABC):
    def __init__(self, model_class):
        """
        
        :param model_class: 
            model名字，model 对应着数据库的表,用户获取表相关的信息，如表的名字
        :param db_config_path: 
        """
        super().__init__()
        self.model_class = model_class

    def get_table_name(self):
        if self.model_class is None:
            return None
        return self.model_class.__tablename__
